package jdk8.homework.Demo07;


public class Demo07 {
    public static void main(String[] args) {
        String[] array = {"迪丽热巴,女", "古力娜扎,女", "马尔扎哈,男"};
        for (String s : array) {
            String[] split = s.split(",");
            System.out.println("姓名: " + split[0] + " 性别：" + split[1]);
        }


    }
}
